package com.youlai.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.system.model.entity.SysDegree;
import com.youlai.system.model.query.DegreePageQuery;
import com.youlai.system.model.vo.DegreePageVO;

public interface SysDegreeService extends IService<SysDegree> {

    /**
     * 获取某个学生某个课程的等级
     *
     * @param studentId
     * @param courseId
     * @return
     */
    SysDegree getStuCourseDegree(Long studentId, Long courseId);

    /**
     * 初级定级分页列表
     *
     * @return
     */
    IPage<DegreePageVO> getDegreePage(DegreePageQuery queryParams);


    boolean clearDegreeBy(Long studentId, Long courseId);

    boolean clearDegreeByCourseId(Long courseId);
}
